{include file="header.html"}

<div class="body"> 
	<div class="page-header">
	<h6>
		推送管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			推送管理
		</small>
		<div style="text-align:right">
			<a href="?app=push&act=add" target="_blank">添加推送</a>
		</div>
	</h6>
</div>  
  <div style="margin-top:30px;">
	<form action="?" method="get">
	<div class="search">
	<input type="hidden" name="app" id="app" value="push" />
	<input type="hidden" name="act" id="act" value="index" />
	<span> ID : </span><input type="text" name="id" id="id" value="{$id}" /> 
	<span> 关键词 : </span><input type="text" name="keyword" id="keyword" value="{$keyword}" /> 
	<input type="submit" class="btn" value="搜 索"  /> 
	<div class="clear"></div>
	</div>
	</form>
  </div>	
	<div class="list">
		<table id="simple-table" class="table table-striped table-bordered table-hover">
			<tr class="h">
				<th >ID</th>
				<th >标题</th>
				<th >内容</th>
				<th >人群</th>
				<th >发送时间</th>
				<th >操作</th>

				<!--<th width="10%">操作</th>-->
			</tr>
			{foreach from=$rs item=row name=row}
			<tr bgcolor="white">
				<td>{$row.id}</td>
				<td>{$row.title|truncate:40}</td>
                <td>{$row.content}</td>
				<td>{if $row.member_type == 1}所有人{else}部分人{/if}</td>
                <td>{$row.send_time|date_format:"%Y-%m-%d %H:%I:%S"}</td>

			<td align="center">
				<!-- <a href="?app=push&act=edit&id={$row.id}" class="ico2"></a> -->
				<a class="ico3 delete" href="?app=push&act=delete&id={$row.id}" style="color:red;"> 删除 </a> 
			</td> 
			</tr>
			{foreachelse}
			<tr bgcolor="white"><td colspan="4" height="50">暂无记录</td></tr>
			{/foreach}
		</table>
		
		<div class="clear"></div>
		<div class="mypage" style="text-align:right">
			共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
		</div>
	</div>
</div>

{include file="footer.html"}